import Vue from 'vue'
import App from './App.vue'
import router from '@/router/index.js'
//引入store
import store from '@/store/index'
//三级联动组件 --全局注册
import TypeNav from '@/components/TypeNav/TypeNav'

import Carousel from '@/components/Carousel/Carousel'

import Pageination from "@/components/Pageination/Pageination"
//注册全局组件
Vue.component(TypeNav.name,TypeNav)
Vue.component(Carousel.name, Carousel)
Vue.component(Pageination.name,Pageination)
//引入mock
import '@/mock/mockServe';
import "swiper/css/swiper.css";

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
   router,
   store,
   beforeCreate(){
    Vue.prototype.$bus = this 
   }
}).$mount('#app')
